<template>
  <div class="q-pa-md">
    <t-badge color="secondary"> Model: {{ basicModel }} (0 to 10) </t-badge>
    <t-slider v-model="basicModel" markers :min="0" :max="10" />

    <t-badge color="secondary"> Model: {{ greenModel }} (0 to 10) </t-badge>
    <t-slider
      v-model="greenModel"
      color="green"
      markers
      snap
      :min="0"
      :max="10"
    />

    <t-badge color="secondary">
      Model: {{ orangeModel }} (0 to 16, step 2, marker step 4)
    </t-badge>
    <t-slider
      v-model="orangeModel"
      color="orange"
      snap
      :step="2"
      :min="0"
      :max="16"
      :markers="4"
    />
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        basicModel: ref(2),
        greenModel: ref(0),
        orangeModel: ref(6),
      };
    },
  };
</script>
